CC=cc
SRC=${wildcard *.c}
BIN=${patsubst %.c, %, $(SRC)}
CFLAGS = -g -Wall

all:$(BIN)

$(BIN):%:%.c
	@echo [CC] $^
	@$(CC) -o $@ $^ $(CFLAGS)

clean:
	$(RM) a.out $(BIN) .*.*.sw?

test:
	echo $(CC)

.PHONY:all clean
